module.exports = async(ctx,next)=>{
    const fs = require("fs");
    const start = Date.now();
    await next();
    const end = Date.now();
    const info = `请求路径:${ctx.path},请求方式:${ctx.method},请求处理时间:${end-start}`;
    console.log("info",info);
    fs.appendFileSync("./logger.txt",info)
}
